const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 登录成功后的令牌
  name: state => state.user.userInfo.username, // 用户名
  staffPhoto: state => state.user.userInfo.staffPhoto // 用户头像
}
export default getters

/**
  device: function(state) {
    return state.app.device
  }

  device(state) {
    return state.app.device
  }

  device: state => state.app.device
 */
